﻿<%@ Page Title="" Language="C#" MasterPageFile="~/SharedPool.master" AutoEventWireup="true" CodeFile="ACLJ.aspx.cs" Inherits="ACLJ_ACLJ" %>

<%@ Register src="../DispoDDL.ascx" tagname="DispoDDL" tagprefix="uc1" %>
<%@ Register src="../DispoConfirm.ascx" tagname="DispoConfirm" tagprefix="uc2" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">

</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" Runat="Server">
  
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="SideContent" Runat="Server">
    <br />
    Non Sale Dispositions
    <uc2:DispoConfirm ID="DispoConfirm1" runat="server" />

    <hr />
    <br />
    Sale Dispositions
    <br />
      <asp:Table ID="Table1" runat="server" Height="76px" 
        Width="300px">
        <asp:TableRow ID="TableRow1" runat="server">
            <asp:TableCell ID="TableCell1" runat="server">Donation Type:</asp:TableCell>
        </asp:TableRow>
        <asp:TableRow ID="TableRow3" runat="server">
            <asp:TableCell ID="TableCell6" runat="server">
                <asp:DropDownList ID="ddDonationType" runat="server" width="200px" ValidationGroup="Donation">
                    <asp:ListItem Value="1">Credit Card</asp:ListItem>
                    <asp:ListItem Value="2">Cash Pledge</asp:ListItem>
                </asp:DropDownList>
            </asp:TableCell>
        </asp:TableRow>
        <asp:TableRow ID="TableRow2" runat="server">
            <asp:TableCell ID="TableCell3" runat="server">Donation Amount: $</asp:TableCell>
        </asp:TableRow>
        <asp:TableRow ID="TableRow4" runat="server">
            <asp:TableCell ID="TableCell5" runat="server"><asp:TextBox ID="txtDonationAmt" runat="server" ValidationGroup="Donation"></asp:TextBox></asp:TableCell>
        </asp:TableRow>

    </asp:Table>

  <asp:Button ID="btnSaveDonation" runat="server" onclick="btnSaveDonation_Click" 
        Text="Disposition as Donation" Width="158px" ValidationGroup="Donation" 
        style="margin-top: 24px" />

    <asp:Label ID="lblErrorMsg" runat="server" ForeColor="Red" Visible="False"></asp:Label>

   <asp:RequiredFieldValidator ID="Req1" runat="server" 
        ControlToValidate="txtDonationAmt" validationgroup="Donation" ErrorMessage="* Donation Amount Required"></asp:RequiredFieldValidator>
    <asp:RegularExpressionValidator ID="Req2" runat="server" 
        ControlToValidate="txtDonationAmt" validationgroup="Donation" ErrorMessage="* Donation Amount required format (999.99)" 
        ValidationExpression="(?!^0*$)(?!^0*\.0*$)^\d{1,5}(\.\d{1,2})?$" ></asp:RegularExpressionValidator>

</asp:Content>

